<template>
  <a-config-provider :locale="chinese">
    <!-- <a-spin :spinning="globalSpinning" :delay="200"> -->
    <div id="itqms">
      <router-view />
    </div>
    <!-- </a-spin> -->
  </a-config-provider>
</template>

<script>
import enquireScreen from './utils/device';
import chinese from 'ant-design-vue/es/locale-provider/zh_CN';
import 'moment/locale/zh-cn';

export default {
  name: 'itqms',
  data() {
    return {
      chinese
    };
  },
  computed: {
    /* globalSpinning: {
      get() {
        return this.$store.state.setting.globalSpinning;
      }
    } */
  },
  created() {
    let _this = this;
    enquireScreen(isMobile => {
      _this.$store.commit('setting/setDevice', isMobile);
    });
    /* function checkIE() {
      return window.navigator.userAgent.indexOf('Trident') > -1;
    } */
    // debugger;
    if (window.navigator.userAgent.indexOf('Trident') > -1) {
      window.addEventListener(
        'hashchange',
        () => {
          var currentPath = window.location.hash.slice(1);
          if (this.$route.path !== currentPath) {
            this.$router.push(currentPath);
          }
        },
        false
      );
    }
  }
};
</script>
<style lang="less">
// @import '~utils/main-design';
@media screen and (max-width: 1367px) {
  html {
    min-width: 1300px;
    // min-height: 600px;
    font-size: 16px;
    background-color: #002462;
  }
}
html,
body {
  height: 100%;
}
body {
  // font-family: 'SourceHanSansCNRegular' !important;
  font-size: 16px;
  background-color: #f0f2f5;
}
#itqms {
  height: 100%;
}

.ant-table tr:nth-child(odd) {
  background-color: #fff;
}
.ant-table tr:nth-child(even) {
  background-color: #f6f8fc;
}
:global {
  .dragable-ghost {
    border: 1px dashed #aaaaaa;
    opacity: 0.65;
  }
  .dragable-chose {
    border: 1px dashed #aaaaaa;
    opacity: 0.65;
  }
  .dragable-drag {
    border: 1px dashed #aaaaaa;
    opacity: 0.65;
  }
}
/* ::-webkit-scrollbar {
  display: none;
} */
/* ::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  border-radius: 1px;
}

::-webkit-scrollbar-thumb {
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.2);
} */
.multi-page {
  // margin: -24px 0 0;
  height: 100%;
  margin: 0;
}

.single-page {
  margin: 0;
}

.card-area {
  width: 100%;
}

.not-menu-page {
  background: #fff;
  padding: 16px 32px;
  border-left: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.ant-btn,
.ant-input,
.input,
.ant-pagination-item,
.ant-pagination-prev .ant-pagination-item-link,
.ant-pagination-next .ant-pagination-item-link,
.ant-tag,
.ant-modal-content,
.ant-select-selection,
.ant-select-dropdown,
.ant-input-group-addon,
.ant-input-number-input,
.ant-input-number,
.ant-pagination-options-quick-jumper input,
.ant-alert {
  border-radius: 4px !important;
}

.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab,
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab {
  border-radius: 3px 3px 0 0 !important;
}

.ant-card-wider-padding .ant-card-body {
  padding: 10px 10px !important;
}

.ant-modal-mask {
  background-color: rgba(0, 0, 0, 0.6) !important;
}

.ant-modal-header {
  border-bottom-color: #fff !important;
}

.ant-menu-dark .ant-menu-inline.ant-menu-sub {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) inset !important;
}

.ant-menu-inline .ant-menu-item,
.ant-menu-vertical .ant-menu-item {
  margin-top: 0 !important;
}
.ant-menu-dark,
.ant-menu-dark .ant-menu-sub {
  background: #393e46 !important;
}

.ant-table-row-expand-icon {
  margin-right: 1rem !important;
}

:root .ant-tabs-tab-prev {
  border: 1px solid #e8e8e8;
  border-radius: 3px 0 0 0;
  background: #fafafa;
}
.ant-card-loading {
  &:after {
    width: 0 !important;
  }
}
.ant-tabs-tab-next.ant-tabs-tab-arrow-show {
  border: 1px solid #e8e8e8;
  border-radius: 0 3px 0 0;
  background: #fafafa;
}
.ant-layout-header,
.system-top-menu {
  height: 59px !important;
  line-height: 59px !important;
}
.ant-form-item {
  margin-bottom: 5px !important;
}
.ant-menu-inline,
.ant-menu-vertical,
.ant-menu-vertical-left {
  border-right: 0 solid #ccc !important;
}
.ant-drawer-body {
  padding-bottom: 3rem !important;
}
.page-tabs .ant-tabs-close-x {
  color: #fff !important;
  margin-left: 0.3rem !important;
}
.page-tabs:hover .ant-tabs-close-x {
  color: #f95476 !important;
}
.drawer-bootom-button {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-top: 1px solid #e8e8e8;
  padding: 10px 16px;
  text-align: right;
  left: 0;
  background: #fff;
  border-radius: 0 0 2px 2px;
}
.search {
  margin-bottom: 0.5rem !important;
}
.ant-table {
  i {
    font-size: 18px;
  }
}
//p {
//  overflow: hidden;
//  text-overflow: ellipsis;
//  word-break: break-all;
//  white-space: nowrap;
//}
@media screen and (min-width: 1400px) {
  p,
  .ant-pagination,
  .ant-form,
  .ant-dropdown,
  .ant-form-item,
  // .ant-select,
  .ant-breadcrumb,
  .ant-form label,
  .ant-btn,
  .ant-table {
    font-size: 12px !important;
  }
  .ant-menu-vertical .ant-menu-item,
  .ant-menu-vertical-left .ant-menu-item,
  .ant-menu-vertical-right .ant-menu-item,
  .ant-menu-inline .ant-menu-item,
  .ant-menu-vertical .ant-menu-submenu-title,
  .ant-menu-vertical-left .ant-menu-submenu-title,
  .ant-menu-vertical-right .ant-menu-submenu-title,
  .ant-menu-inline .ant-menu-submenu-title {
    font-size: 14px !important;
  }
  .ant-card-head {
    font-size: 14px !important;
  }
  .page-tabs .ant-tabs-nav-container {
    font-size: 13px !important;
  }
}

@media screen and (max-width: 1399px) {
  p,
  .ant-pagination,
  .ant-form,
  .ant-dropdown,
  .ant-form-item,
  // .ant-select,
  .ant-breadcrumb,
  .ant-form label,
  .ant-btn,
  .ant-table {
    font-size: 12px !important;
  }
  .ant-menu-vertical .ant-menu-item,
  .ant-menu-vertical-left .ant-menu-item,
  .ant-menu-vertical-right .ant-menu-item,
  .ant-menu-inline .ant-menu-item,
  .ant-menu-vertical .ant-menu-submenu-title,
  .ant-menu-vertical-left .ant-menu-submenu-title,
  .ant-menu-vertical-right .ant-menu-submenu-title,
  .ant-menu-inline .ant-menu-submenu-title {
    font-size: 12px !important;
  }
  .ant-card-head {
    font-size: 14px !important;
  }
  .page-tabs .ant-tabs-nav-container {
    font-size: 13px !important;
  }
}
.ant-select-dropdown-menu-item {
  color: rgba(0, 0, 0, 0.65);
  line-height: 24px;
  padding-bottom: 0px;
  padding-top: 0px;
  // height: 24px;
}
.blue-row {
  background-color: #8b9dbf !important;
  color: #fff !important;
}
.blue-row:hover {
  background-color: #8b9dbf !important;
  color: #fff !important;
}
.el-input__prefix {
  position: absolute;
  right: 5px !important;
  top: 0;
  color: #c0c4cc;
  left: unset;
}
.label-style {
  padding-left: 40px;
  color: #000000;
  width: 150%;
}
</style>
